package cn.anc.aonicardv.media;

import android.net.Network;

/**
 * Created by yangdai on 2017/10/11.
 */

public interface MediaOperation {

    void start();

    void resume();

    void pause();

    void seekTo(long pos);

    void setVolume(float volume);

    int getDuration();

    boolean isPlaying();

    int getCurrentPosition();

    int getBufferPercentage();

    void releasePlayer();

    void setAutoReconnect(boolean autoConnect);

    void setNetwork(Network network);

    void setDataSource(String url);

}
